//==============================================================================
// Copyright 2009 Sidney Shek All Rights Reserved
//==============================================================================
// SYSTEM:        ITEC824-MajorProject-Server
// FILE NAME:	  Timesheet.java
// DESCRIPTION:   
// AUTHOR:        sshek2
// CREATED:       17/04/2009
//
// REVISION HISTORY:
// $Author: $
// $Id:  $
//
//==============================================================================
//

package itec824.integration.model;

import itec824.common.model.User;

import java.util.Date;
import java.util.List;

/**
 * Holds information about a timesheet
 * 
 *
 * @version $Revision: $
 * @author sshek2
 */
public class Timesheet
{
    /**
     * @return Returns the lastUpdatedDate.
     */
    public Date getLastUpdatedDate()
    {
        return myLastUpdatedDate;
    }
    /**
     * @param aLastUpdatedDate The lastUpdatedDate to set.
     */
    public void setLastUpdatedDate(Date aLastUpdatedDate)
    {
        myLastUpdatedDate = aLastUpdatedDate;
    }
    /**
     * @return Returns the user.
     */
    public User getUser()
    {
        return myUser;
    }
    /**
     * @param aUser The user to set.
     */
    public void setUser(User aUser)
    {
        myUser = aUser;
    }
    /**
     * @return Returns the approvedFlag.
     */
    public boolean isApprovedFlag()
    {
        return myApprovedFlag;
    }
    /**
     * @param aApprovedFlag The approvedFlag to set.
     */
    public void setApprovedFlag(boolean aApprovedFlag)
    {
        myApprovedFlag = aApprovedFlag;
    }
    /**
     * @return Returns the timesheetId.
     */
    public long getTimesheetId()
    {
        return myTimesheetId;
    }
    /**
     * @param aTimesheetId The timesheetId to set.
     */
    public void setTimesheetId(long aTimesheetId)
    {
        myTimesheetId = aTimesheetId;
    }
    /**
     * @return Returns the version.
     */
    public int getVersion()
    {
        return myVersion;
    }
    /**
     * @param aVersion The version to set.
     */
    public void setVersion(int aVersion)
    {
        myVersion = aVersion;
    }
    /**
     * @return Returns the startDate.
     */
    public Date getStartDate()
    {
        return myStartDate;
    }
    /**
     * @param aStartDate The startDate to set.
     */
    public void setStartDate(Date aStartDate)
    {
        myStartDate = aStartDate;
    }
    /**
     * @return Returns the endDate.
     */
    public Date getEndDate()
    {
        return myEndDate;
    }
    /**
     * @param aEndDate The endDate to set.
     */
    public void setEndDate(Date aEndDate)
    {
        myEndDate = aEndDate;
    }
    /**
     * @return Returns the entries.
     */
    public List<TimesheetEntry> getEntries()
    {
        return myEntries;
    }
    /**
     * @param aEntries The entries to set.
     */
    public void setEntries(List<TimesheetEntry> aEntries)
    {
        myEntries = aEntries;
    }
    private User myUser;
    private boolean myApprovedFlag;
    private long myTimesheetId;
    private int myVersion;
    private Date myStartDate;
    private Date myEndDate;
    private List<TimesheetEntry> myEntries;
    private Date myLastUpdatedDate;
}
